package com.oig.sys.base.service;

import com.oig.common.module.SysPageInfo;
import com.oig.common.module.SysRequest;
import com.oig.sys.base.dto.CountryDto;
import com.oig.sys.base.vo.CountryVo;

import java.util.List;


/**
 * @author wuxl
 */
public interface ITbCountryService {

    CountryVo addTbCountry(CountryDto countryDto);

    CountryVo updateTbCountry(CountryDto countryDto);

    void cancelTbCountry(String code);


    CountryVo getCountryByCode(String code);

    CountryVo getCountryByApplyCode(String applyCode);

    List<CountryVo> findCountriesByNames(List<String> nameList);
    List<CountryVo> findCountriesByApplyCodes(List<String> applyCodeList);

    CountryVo getCountryByName(String name);

    CountryVo getCountryByIsoCode(String isoCode);


    List<CountryVo> listCountry(String parentCode);


    SysPageInfo<CountryVo> findCountryPage(SysRequest<CountryDto> countryRequest);

    List<CountryVo> findCountry(SysRequest<CountryDto> countryRequest);
}
